package com.house.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.house.dao.UserDao;
import com.house.pojo.User;
import com.house.service.UserService;


@Transactional/*事务提交*/
@Service
public class UserServiceImpl implements UserService {
	
	
	@Autowired
	private UserDao userDao;
	

	@Override
	public User login(User u) {
		// TODO Auto-generated method stub
		return userDao.login(u);
	}

	@Override
	public User selectUser(int userno) {
		// TODO Auto-generated method stub
		return userDao.selectUser(userno);
	}

	@Override
	public int register(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return userDao.register(map);
	}

	@Override
	public User findName(String userName) {
		// TODO Auto-generated method stub
		return userDao.findName(userName);
	}

}
